package com.crr.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotEmpty;

@ApiModel("用户登录")
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
public class LoginBean {
    @ApiModelProperty(value = "账号", required = true)
    @NotEmpty(message = "账号不能为空")
    String username;
    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty(message = "密码不能为空")
    String password;
}